RELEASE = 0
UNICODE = 0
PLATFORM=linux
FLAGS= 

THIRD_JSONCPP_PATH = ./XEngine_ThirdPart/jsoncpp

BASE_SQL_PATH = ./StorageModule_Database
BASE_CONFIG_PATH = ./StorageModule_Config
BASE_SESSION_PATH = ./StorageModule_Session
BASE_APIHELP_PATH = ./StorageModule_APIHelp
BASE_PROTOCOL_PATH = ./StorageModule_Protocol

APPSERVICE_STORAGE_PATH = ./XEngine_StorageApp

XENGINE_MODULES = libjsoncpp.so                                                          \
                libStorageModule_Database.so libStorageModule_Config.so libStorageModule_Session.so libStorageModule_APIHelp.so libStorageModule_Protocol.so         \
		 		XEngine_StorageApp.exe 

.PHONY:MakeAll 
MakeAll:$(XENGINE_MODULES)
	
libjsoncpp.so:
	make -C $(THIRD_JSONCPP_PATH) PLATFORM=$(PLATFORM) $(FLAGS)

libStorageModule_Database.so:
	make -C $(BASE_SQL_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
libStorageModule_Config.so:
	make -C $(BASE_CONFIG_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
libStorageModule_Session.so:
	make -C $(BASE_SESSION_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
libStorageModule_APIHelp.so:
	make -C $(BASE_APIHELP_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
libStorageModule_Protocol.so:
	make -C $(BASE_PROTOCOL_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
	
XEngine_StorageApp.exe:
	make -C $(APPSERVICE_STORAGE_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
